package com.dense.kuiniu.bookborrow.business.entity;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.SerializedName;

/**
 * @author Administrator
 * @date 2021/1/25
 */
public class QueryBookInfo implements Parcelable {
    @SerializedName("题名")
    private String name;
    @SerializedName("著者")
    private String author;
    @SerializedName("流通状态")
    private String state;
    @SerializedName("出版社")
    private String press;
    @SerializedName("条形码")
    private String bookBarCode;
    @SerializedName("借出日期")
    private String borrowDate;
    @SerializedName("应还日期")
    private String backDate;
    private String bookCover;
    private boolean isChecked;
    private String backFlag;
    private String backInfor;

    public String getBackFlag() {
        return backFlag;
    }

    public void setBackFlag(String backFlag) {
        this.backFlag = backFlag;
    }

    public String getBackInfor() {
        return backInfor;
    }

    public void setBackInfor(String backInfor) {
        this.backInfor = backInfor;
    }

    public boolean isChecked() {
        return isChecked;
    }

    public void setChecked(boolean checked) {
        isChecked = checked;
    }

    public String getBookCover() {
        return bookCover;
    }

    public void setBookCover(String bookCover) {
        this.bookCover = bookCover;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getPress() {
        return press;
    }

    public void setPress(String press) {
        this.press = press;
    }

    public String getBookBarCode() {
        return bookBarCode;
    }

    public void setBookBarCode(String bookBarCode) {
        this.bookBarCode = bookBarCode;
    }

    public String getBorrowDate() {
        return borrowDate;
    }

    public void setBorrowDate(String borrowDate) {
        this.borrowDate = borrowDate;
    }

    public String getBackDate() {
        return backDate;
    }

    public void setBackDate(String backDate) {
        this.backDate = backDate;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.name);
        dest.writeString(this.author);
        dest.writeString(this.state);
        dest.writeString(this.press);
        dest.writeString(this.bookBarCode);
        dest.writeString(this.borrowDate);
        dest.writeString(this.backDate);
        dest.writeString(this.bookCover);
        dest.writeByte(this.isChecked ? (byte) 1 : (byte) 0);
        dest.writeString(this.backFlag);
        dest.writeString(this.backInfor);
    }

    public QueryBookInfo() {
    }

    protected QueryBookInfo(Parcel in) {
        this.name = in.readString();
        this.author = in.readString();
        this.state = in.readString();
        this.press = in.readString();
        this.bookBarCode = in.readString();
        this.borrowDate = in.readString();
        this.backDate = in.readString();
        this.bookCover = in.readString();
        this.isChecked = in.readByte() != 0;
        this.backFlag = in.readString();
        this.backInfor = in.readString();
    }

    public static final Parcelable.Creator<QueryBookInfo> CREATOR = new Parcelable.Creator<QueryBookInfo>() {
        @Override
        public QueryBookInfo createFromParcel(Parcel source) {
            return new QueryBookInfo(source);
        }

        @Override
        public QueryBookInfo[] newArray(int size) {
            return new QueryBookInfo[size];
        }
    };
}